home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / ocean / cacd_bin.000 / cacd_bin / lib / include / dmsm.h < prev    next >
C/C++ Source or Header  |  1994-05-06  |  891b  |  26 lines

  1. /*
  2.  * @(#)sm.h 1.9 11/12/91 Delft University of Technology
  3.  *
  4.  * Define contants and a structure for the canonic string manager sm.c.
  5.  */
  6.  
  7. typedef struct _SMINFO
  8. {
  9.   char           *str;          /* The "canonic" string pointer. */
  10.   long           linkcnt;      /* Number of references to string. */
  11.   struct _SMINFO *next;          /* Next element in this hash table entry. */
  12. }
  13. SMINFO,*SMINFOPTR;
  14.  
  15. #define SMMAXSTRLEN  257      /* Maximum length of a string to be stored. */
  16. #define SMMEANSTRLEN 6          /* Expected length of strings (incl. NULL). */
  17. #define SMMINSIZ     1          /* Minimum size of hash table. */
  18. #ifndef __MSDOS__
  19. #define SMMAXSIZ     50000      /* Maximum size of hash table. */
  20. #define SMDEFAULTTABLESIZ 10000      /* Default size of the hash table. */
  21. #else
  22. #define SMMAXSIZ     500      /* Maximum size of hash table. */
  23. #define SMDEFAULTTABLESIZ 500      /* Default size of the hash table. */
  24. #endif
  25.  
  26.